package com.eb.buybuybuy.bean;

public class Cart {
    private Integer id;
    private Integer userId;
    private Integer goodsId;
    private Integer number;

    public Cart() {
    }

    public Cart(Integer id, Integer userId, Integer goodsId, Integer number) {
        this.id = id;
        this.userId = userId;
        this.goodsId = goodsId;
        this.number = number;
    }

    @Override
    public String toString() {
        return "Cart{" +
                "id=" + id +
                ", userId=" + userId +
                ", goodId=" + goodsId +
                ", number=" + number +
                '}';
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public Integer getGoodsId() {
        return goodsId;
    }

    public void setGoodsId(Integer goodsId) {
        this.goodsId = goodsId;
    }

    public Integer getNumber() {
        return number;
    }

    public void setNumber(Integer number) {
        this.number = number;
    }
}
